package com.holly.unit.deform.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.holly.unit.deform.entity.DesignFormOnlineField;
import com.holly.unit.deform.mapper.DesignFormOnlineFieldMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DesignFormOnlineFieldService extends ServiceImpl<DesignFormOnlineFieldMapper, DesignFormOnlineField> {

    public List<DesignFormOnlineField> listByHead(String id) {
        QueryWrapper<DesignFormOnlineField> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("cgform_head_id", id);
        queryWrapper.orderByAsc("create_time");
        return this.list(queryWrapper);
    }
}
